Fixed bug with javascript lint