javascript: simplified inliner