update js and css snippets to point to new extensions paths
fix bug
remove extra slash
add new getBaseUrl method to calculate relative url
Merge pull request #1573 from rossriley/extensions-improvements-fixes

update js and css snippets to point to new extensions paths