Fix loader script to work with chrome 26