testing the branching method of git
added comments and cleaned up the submitform
added more notes of submitform
tested something with the count firebase pointer

check sheet and planned out how to change the submittofirebase funciton
added a getCount function to form-sub
added a newsubmitForm so the old one is still in place to reference
cleaned up the new sumbit form function

Will test now
bootstrapvalidator work in html but it won't post to the firebase
cleaned up some code
fixed up some functions and getCount fails right after the alert.
getCount doesnt work but in the submitevent function it works
getCount cant be a seperate function for some reason it works if you add it directly into the submitEvent function.
forgot to commit changes before powering off computer
eventcount is not updating but with a fixed value pushing to the firebase works but this only works if you have the count already initialized in the firebase db
cleaned up some function and still working on get count it doesnt seem to work anymore
posting to fb works.

count is still 999 and not updating

each event was succesfully posted.

the results str seems to output correctly so far but its all on one line.
converted alert messages into console.log so theres no interuption in submission
playing with getting the value i cant seem to get it working anymore
still no luck on getting count value
did some brainstorming and figured out why getCount won't work its because the function is assynchronous and figureout away around it

.on(){

if notsubmited {
//all the code in submit event

notsubmited = false
else
disconnect from the firebase