relocated inline javascript