js hints and hacks