Added Javascript prototype