A simple function for asynchronously loading JavaScript files