created GPIO js prototype