fixed license and js issues