Removed scriptPath and fixed a bug related to parseInt.