Modify Html Element Javascript Value Function Cost