Solved oninput and onpropertychange problem, and added use strict