fixed JS syntax error
fixed that some selected resources were'nt highlighted in the sidebar