Framework-independent javascript loader class