Better place for the javascript code.