javascript quick hackarounds