fixing js on reg form