strict method for javascript.