Fixed JavaScript asynchronous issue
Merge pull request #18 from jrpruit1/update-views

Fixed JavaScript asynchronous issue