moved some stuff around and setup javascript testing framework