move to collapse and touchstart events
plus js refactoring of android_interface to separate file