Remove need for mutliple script tags in HTML