Hacked solution for javascript asset troubles