Restrict edit example to javascript