Variable and console log added to javascript file