javascript: remove redundant files
Fix inconsistent tabs
Fix issues and squash commit
rebase on master