Implement custom print directives for Javascript backend

Use user symbol to identify data after parsing
Existing issues:
1. Order of print directives application may be reversed.
2. RequireJS backend is not supported.
Fix order of custom directives in Javascript