Corrected merge error in check.php.
Tidied PHP scripts and Javascript.

Changes:

 * More meaningful variable names.
 * Removed unnecessary PHP includes for JSON.
 * Used PHP json_encode instead.
Commited working Jpylyzer demo.