Discovers and adds javascript files as script blocks to a configured page