Dev2

Code rewrite using object inheritance to implement different PType() syntax: `<JS>` and `<js>` tag