refactored out js modal code and added intro text to modal