beginner.js file mod - working