Edited A LOT of javascript.