Javascript public resource