Changed order of CLOSE_TAG and trailing whitespaces in JS tokenizer. 
Added JS support to Generic_Sniffs_Files_EndFileNewlineSniff.php