JS fixes; added Web Link and PPT support for resources