extracted javascript into separate file

added comments to students.js