removes prefix from sample nav js code