some javascript to throw in a project