js faffing in the console