style(pre-commit): add pre-commit script for js and ruby, plus install script
fix(check-fail): check if cp fails
chore(pre-commit): move pre-commit scripts to folder
Merge pull request #24 from cs198/chore-precommit

style(pre-commit): add pre-commit script for js and ruby