Added javascript next/previous