smooth over the permission workaround
compile down the javascript when releasing