moves compiled files to lib/, fixes js bug