Attempting to do javascript, but failing miserably.