Simple JS function Not Working

Simple JS function Not Working