Socket IO now implemented
turn PN, the main js object, into a proper one