Update elements_parser.js

Added appropriate handling of use tag in createobject function.