Added own js validation