fixed js, added routes