add base JavaScript code and update application, dashborad js
refactor JavaScript
update JavaScript doc
update comments
update candidate detailed page
update vairable and function names according to JavaScript coding styles
Merge pull request #259 from starandtina/js-refactor

[PT 51699153]JavaScript refactor