Loading the activity palette template breaks activity working on browsers

The activitypalette.js try to open a html file to use it as a template.
When the activity is started n a browser, opening the index.html file
using the file:/// protocol, and try  to open the file give a error 
"Cross origin requests are only supported for HTTP."
The template is really simple, we can include it in the js file instead.