Javascript Improve #4