Simplified resource loading for javascript.