fixed bug when not providing expireTime, removed dependence on moment lib, added semi-colons