Inlining works for js, and fixed image data uri issue.