Lightweight javascript input slider