javascript code base