Fixed issue on non existing pre-commit file.
Added admin folder inside js folder and added login functions.