Rename parse function.
Move var declarations to the top.