Js - use strict inside function