JavaScript loader and manager