Kohana module. Linking validation with JS