Update parser.js

Added function to parse definitions, added use of tage 'use'