Extend javascript to provide List object