Getting console is undefined error when trying to run JavaScript using script


#1