A magic loader for JavaScript