Cleaned up javascript and got scroll working.