Base prototype for javascript collection's