Made sure javascript executed on first page load. Added row and column ordering.