Add javascript functions for dynamic loading JS and CSS