Update emacs.d config

1. use flycheck to do sytax checking
2. abstract js-mode to a singale file