messed with stuff in Javascript