hacks to make work inside chrome app