Relax the '.' stripping in JS