Hacks on js