Moved js to external document