move prototype after constructor definition