cosmetic changes: added some tests, removed some javascripts