validat js as local file