Update main.js

most of the commented off code is code from kyle for his webpage example. the database created for me and i am going to continue working on the registering thing to see if i could get it working properly.