Fixed perspective issues and refactored to utilize more jQuery