added modular approach for javascripts