Add metadataOnClient.js and first tests
Move script tags inside body at end instead of (illegally) after body