fixing some javascript bugs
Adding basic Facebook authentication