Split input js

fix