Javascript update to allow alignment coords toggling