Adding browser detection and using it on sortable directive