Moved js to separate file.