Moved js to external file