cleanup, create input.js

add some items to ports