Extracted .js to external file