tweaks on php + lesson.js