Cleanup JavaScript