Cleanup javascript