only watch .js file and reload page once.

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
Merge pull request #246 from appleboy/patch

only watch .js file and reload page once.