improve script including strategy
better approach to include script on page + small fixes