Implement arrows to move item in queue. Add prevent-default handler in js. Code style refactoring. Partially update pydoc strings.