minor fixes and added scriptjs