cleaning up

compressed much stuff into js