javascript asset management