Move inline JS to external file