Fixed dataType problem in scripts.js