some methods for javascript parsing added