Javascript & Homepage Fixes