Fine tune javascript and dynamic include support