refactoring in post controller + dynamic route to bookmarklet javascript to include dynamic url to load scripts