added some inline javascript