regex matching in js file because apparently it doesn't work in the plist, reset to version 0.1