Cleaned up useless javascript