Re-arranged scripts and added jquery.