removed some crazy javascript stuff