[Fixed Javascript Problems]