added basic API and javascript changes to base and home