Removed PHP - Refactored and reorganized scripts.js