JavaScript not having a super() and all