Some javascript parsing working

Need to investigate bug concerning parsing functions