completed javascript functions training