added glob support for javascript gulp task
general code clean up static rewrite gulp task