miscellaneous js file - strange regex