Added escapejs function