TravisCI: Run optimization test on TARGET=js build.
TravisCI: Move RunTravis to /tests
TravisCI: fix flash builds
Merge pull request #2481 from andyli/travis

TravisCI: Run optimization test.