Simple JS script launching gif loader on demand into html5 page