oh the joys of js