Dirac Bracket Notation In Javascript Object