adding inline javascript