added js information, fixed minor errors