Move dir locals to the javascript directory. Maybe it'll help.
diplay -> display. Add some undefined checks.