If you have server-side available — which it appears you do (ColdFusion) — there should be a way to do this without JavaScript. You should not generate any content whatsoever using JavaScript; especially when there are more practical methods available.