moved js to external file
updated gitignore