Why not do that in the javascript file?