Practica3 - new js lib

started to implement validation functions