Cleaned up example javascript