move js to external