Improve Javascript #3