prepare js prototypes