Manage JavaScript files in Java way