Fix parsing of js