moving js to top since loading page without js is of no use