updated spec for expand_path to pass javascript code.