[#1273] Add javascript to resource uploads