Update parser.js

final parser including popup and planner spacing/layout fixes