a lot of cleaning up

- no more jquery style
- streamline javascript