#304: ensure all javascript extensions '.js'

Resolves #304.