Optimize JS loading

Only load js file on single and page,And put embed.js before </body>