remove trailing javascript from naked+priority