fix invalid javascript
move call_user_func_array to presenter
merge detached head