fix script name in demos
fix bug with pagination without jquery
add pagination directive