changed PREFIX regex in javascript this fixes #7