beautifies code
removes duplicate
use the canplay event
first shot at NPT parsing
adds npt parsing
undo some errors of beautifier
simplifies getQueryVariable
Merge pull request #4 from Kambfhase/master

Small rewrite - Full NPT support!