fixed iOS safari javascript-bug preventing angular from working