Fixes #999 theme editor not working JS

#999