messing around without a JS library