fixed java script processing issues